From d6851450278c9e97eabf5365cb2a7b2177cacea7 Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Sat, 1 Dec 2018 09:58:42 +0100 Subject: [PATCH] Fix return typehint Found by PHPStan. Change-Id: I2e649aa85c84925886b6acfba2bbdde1a4f12214 --- includes/libs/redis/RedisConnRef.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/includes/libs/redis/RedisConnRef.php b/includes/libs/redis/RedisConnRef.php index a73fac1193..d09620b415 100644 --- a/includes/libs/redis/RedisConnRef.php +++ b/includes/libs/redis/RedisConnRef.php @@ -44,22 +44,16 @@ class RedisConnRef implements LoggerAwareInterface { /** * No authentication errors. - * - * @var constant */ const AUTH_NO_ERROR = 200; /** * Temporary authentication error; recovered by reauthenticating. - * - * @var constant */ const AUTH_ERROR_TEMPORARY = 201; /** * Authentication error was permanent and could not be recovered. - * - * @var constant */ const AUTH_ERROR_PERMANENT = 202; @@ -210,7 +204,7 @@ class RedisConnRef implements LoggerAwareInterface { /** * Handle authentication errors and automatically reauthenticate. * - * @return constant self::AUTH_NO_ERROR, self::AUTH_ERROR_TEMPORARY, or self::AUTH_ERROR_PERMANENT + * @return int self::AUTH_NO_ERROR, self::AUTH_ERROR_TEMPORARY, or self::AUTH_ERROR_PERMANENT */ private function checkAuthentication() { if ( preg_match( '/^ERR operation not permitted\b/', $this->conn->getLastError() ) ) { -- 2.20.1